<!--
 * @Author: 码上talk|RC
 * @Date: 2021-08-04 15:11:32
 * @LastEditTime: 2021-10-19 11:36:02
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /ma-portal/subpackage/axq/pages/introduce/index.vue
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
-->
<template>
  <div class="introduce">
    <uParse
      :content="introduceInfo.content"
      :noData="noData"
      @preview="preview"
      @navigate="navigate"
    ></uParse>
  </div>
</template>

<script>
import uParse from '@/components/gaoyia-parse/parse'

import {
  model
} from '@/model';

const {
  AxqIntroduce
} = model.collection;
export default {
  components: {
    uParse
  },
  data () {
    return {
      introduceInfo: {},
      noData: '<div style="margin-top: 20rpx;text-align:center;">~暂无公司介绍~</div>'
    }
  },
  onLoad () {
    this.getIntroduceInfo()
  },
  onReachBottom () {
    if (this.total > (this.params.pageIndex * this.params.pageSize)) {
      this.params.pageIndex++;
      this.getIntroduceInfo(true)
    }
  },
  methods: {
    getIntroduceInfo () {
      AxqIntroduce.sendApi('introduceInfo', {
        params: {},
        data: {}
      }).then(res => {
        const {
          status,
          data
        } = res;
        if (status) {
          this.introduceInfo = data
        }
      })
    },
  }
}
</script>

<style lang="less">
.introduce {
}
</style>